<%@ page contentType="text/html; charset=utf-8" language="java"  errorPage="" %>
<%@	taglib uri="http://java.sun.com/jstl/core" prefix="c"%>  
<html>
<style type="text/css">
<!--
.style3 {font-size: 12px;font-family:"Times New Roman", Times, serif;}
.STYLE5 {font-size: 12px; font-family: "Times New Roman", Times, serif; color: #F37D1D; }
-->
</style>
<body> 
<table width="100%" border="0" height="20" class="dataTitle">
  <tr >
  <td width="50%" height="20" align="left" valign="baseline">当前第 ${pageBean.page.curpage}页/共 ${pageBean.page.pageTotal} 页&nbsp;&nbsp;
  </td>
    <td width="50%" height="20" align="right" valign="baseline">     
    <c:if test="${pageBean.page.curpage!='0'}">   
  	<c:if test="${pageBean.page.curpage=='1'}">
		<span class="style3"><img src="sys/style01/img/minutapage/trillionth1.gif" width="15" height="15"></span>
		<span class="style3"><img src="sys/style01/img/minutapage/pageUp1.gif" width="15" height="15"></span>
	</c:if>
	<c:if test="${pageBean.page.curpage!='1'}">
		<span class="style3" onClick="dofirst()"><img src="sys/style01/img/minutapage/trillionth.gif" width="15" height="15" border="0"></span>
		<span class="style3" onClick="doprevious()"><img src="sys/style01/img/minutapage/pageUp.gif" width="15" height="15" border="0"></span>
	</c:if>
	<c:if test="${pageBean.page.curpage==pageBean.page.pageTotal}">
		<span class="style3"><img src="sys/style01/img/minutapage/pageDown1.gif" width="15" height="15"></span>
		<span class="style3"><img src="sys/style01/img/minutapage/longstop1.gif" width="15" height="15"></span>
	</c:if>
	<c:if test="${pageBean.page.curpage!=pageBean.page.pageTotal}">
		<span class="style3" onClick="donext()"><img src="sys/style01/img/minutapage/pageDown.gif" width="15" height="15" border="0"></span>
		<span class="style3" onClick="dolast()"><img src="sys/style01/img/minutapage/longstop.gif" width="15" height="15" border="0"></span>
	</c:if>
	&nbsp;&nbsp;<span onClick="excel()"><img src="sys/style01/img/minutapage/importExcel.gif" width="15" height="15" border="0"></span>
	</c:if>
  </td>
  </tr>
</table>
 <script type="text/javascript">
	function checknumber(String) { 
		var Letters = "1234567890"; 
		var i; 
		var c; 
		for( i = 0; i < String.length; i ++ ){ 
			c = String.charAt( i ); 
			if (Letters.indexOf( c ) ==-1){ 
				return true; 
			} 
		} 
	return false; 
	}  
	
	function dochangepage(){
		if(checknumber(document.changepage.gopage.value)){
			alert("输入非数字！");
		}else{
			if(document.changepage.gopage.value<1){
				document.changepage.gopage.value=1;
			}else{
				document.queryFrom.curpage.value=document.changepage.gopage.value;
				document.queryFrom.submit(); 
			}
		}
	} 

	function dofirst(){ 
		document.queryFrom.curpage.value=1;
		document.queryFrom.submit(); 
	}
	
	function dolast(){ 
		document.queryFrom.curpage.value=${pageBean.page.pageTotal};
		document.queryFrom.submit(); 
	}
	
	function doprevious(){ 
		document.queryFrom.curpage.value=${pageBean.page.curpage}-1;
		document.queryFrom.submit(); 
	}
	
	function donext(){ 
		document.queryFrom.curpage.value=${pageBean.page.curpage}+1;
		document.queryFrom.submit(); 
	}
</script>
</body>
</html>
